/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class OutdoorSunUmbrella {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010070026';
    }

    get categoryName() {
        return '\u6237\u5916\u906e\u9633\u4f1e';
    }

    getLedBrightness(params) {
        return command({
            method: 'getLedBrightness',
            methodId: 'p1vZRvF3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLedSwitch(params) {
        return command({
            method: 'getLedSwitch',
            methodId: 'pGoxIHHV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pZguniRS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLedBrightness(params) {
        return command({
            method: 'setLedBrightness',
            methodId: 'pUPQlynL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLedSwitch(params) {
        return command({
            method: 'setLedSwitch',
            methodId: 'ppAXPrPZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3fAdd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default OutdoorSunUmbrella;
